home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 05.zip
/
BS1 part 5
/
SASC_6.0_Disk_3.adf
/
Compiler_headers
/
Include
/
time.h
< prev
Wrap
C/C++ Source or Header
|
1992-07-30
|
2KB
|
111 lines
/* Copyright (c) 1992 SAS Institute, Inc., Cary, NC USA */
/* All Rights Reserved */
#ifndef _TIME_H
#define _TIME_H 1
#ifndef NULL
#define NULL 0L
#endif
#define CLOCKS_PER_SEC 1000
#define CLK_TCK CLOCKS_PER_SEC
#ifndef _SIZE_T
#define _SIZE_T 1
typedef unsigned int size_t;
#endif
typedef unsigned long clock_t;
#ifndef _TIME_T
#define _TIME_T 1
typedef long time_t;
#endif
/**
*
* This structure contains the unpacked time as returned by "gmtime".
*
*/
struct tm {
int tm_sec; /* seconds after the minute */
int tm_min; /* minutes after the hour */
int tm_hour; /* hours since midnight */
int tm_mday; /* day of the month */
int tm_mon; /* months since January */
int tm_year; /* years since 1900 */
int tm_wday; /* days since Sunday */
int tm_yday; /* days since January 1 */
int tm_isdst; /* Daylight Savings Time flag */
};
/***
*
* ANSI time functions.
*
***/
extern clock_t clock(void);
extern double difftime(time_t, time_t);
extern time_t mktime(struct tm *);
extern time_t time(time_t *);
extern char *asctime(const struct tm *);
extern char *ctime(const time_t *);
extern struct tm *gmtime(const time_t *);
extern struct tm *localtime(const time_t *);
extern size_t strftime(char *, size_t, const char *, const struct tm *);
#ifndef _STRICT_ANSI
/***
*
* SAS time functions
*
***/
void getclk(unsigned char *);
int chgclk(unsigned char *);
void utunpk(long, char *);
long utpack(char *);
int timer(unsigned int *);
int datecmp(struct DateStamp *, struct DateStamp *);
time_t __datecvt(struct DateStamp *);
struct DateStamp *__timecvt(time_t);
/* for UNIX compatibility */
extern void __tzset(void);
#define timezone __timezone
#define tzname __tzname
#define daylight __daylight
#define tzset __tzset
#define TZ "CST6" /* Used if TZ env. var. is not set */
#define DAY0 4 /* Jan 1, 1970 is a Thursday */
#endif /* _STRICT_ANSI */
/***
* SAS external variables
***/
extern int __daylight;
extern long __timezone;
extern char *__tzname[2];
extern char __tzstn[4];
extern char __tzdtn[4];
extern char *_TZ;
#endif